#ifndef DO_BILINEAR_LINE_H_INCLUDED
#define DO_BILINEAR_LINE_H_INCLUDED

// (y0(1-U) + y1U) * (1-V) + ((y2(1-U) + y3U) * V);
#define PRECISION_SHIFT	8
#define PRECISION_VALUE	(1<< PRECISION_SHIFT)


#if __cplusplus
extern "C" {
#endif

typedef unsigned char u8;
typedef unsigned short	s16;
typedef unsigned short	u16;
typedef signed int		s32;
typedef unsigned int	u32;

extern void doBilinearLine(u8 *pDst, s32 dstWidth, s32 *pWVectors, u8 *pHSamples[], s16 *pU, s32 v);
extern void doBilinearLine_BGR888(u8 *pDst, s32 dstWidth, s32 *pWVectors, u8 *pHSamples[], s16 *pU, s32 v);

#if __cplusplus
}
#endif

#endif // DO_BILINEAR_LINE_H_INCLUDED
